export function timeSlot(start, step) { //  step = 间隔的分钟
  var date = new Date(start)
//   console.log(date);
  // date.setHours(00)    // 时分秒设置从零点开始
  // date.setSeconds(00)
  // date.setUTCMinutes(00)
  // console.log(date.getHours())
  // console.log(date.getSeconds())
  // console.log(new Date(date.getTime()))

  var timeArr = [];
  var slotNum = 4.25 * 60 / step // 算出多少个间隔
  for (var i = 0; i < 49; i++) { //  stepM * f = 24H*60M
    var time = new Date(Number(date.getTime()) + Number(step * 60 * 1000 * i)) // 获取：零点的时间 + 每次递增的时间
    var hour = '',
      sec = '';
    time.getHours() < 10 ? hour = '0' + time.getHours() : hour = time.getHours() // 获取小时
    time.getMinutes() < 10 ? sec = '0' + time.getMinutes() : sec = time.getMinutes() // 获取分钟
    timeArr.push(hour + ':' + sec)
  }
  return timeArr
}
